import json

import json


import numpy as np
import pandas as pd


book = 'C:/Users/lzc/Desktop/anomalous-vertices-detection-master/data/moreno_innovation_innovation.txt'
csv_file = 'C:/Users/lzc/Desktop/anomalous-vertices-detection-master/data/moreno_innovation_innovation.csv'


txt = np.loadtxt(book)
txtDF = pd.DataFrame(txt)
txtDF=txtDF.astype(float).astype(int).astype(str)
df = txtDF.astype(str).replace(',', '')
df.to_csv(csv_file, header=False,index=False, float_format=None)
